package org.cy.shixun.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.cy.shixun.dto.OrderDto;
import org.cy.shixun.entity.Orders;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author TrainingL
 * @since 2023-06-29
 */
public interface OrderService extends IService<Orders> {
    /**
     * 新增订单
     *
     * @param orderDto 订单dto
     * @param account  账户
     */
    public Orders  orderInsert(OrderDto orderDto, String account);

    /**
     * 删除商品
     *
     * @param account 账户
     */
    public void deleteGoods(String account);

    /**
     *用户立即购买
     * @param orderDto 产品展示
     * @param account     账户
     */
    public Orders buy(OrderDto orderDto,String account);
}
